﻿<%@ Page Language="C#" MasterPageFile="~/Template/Detail.master" AutoEventWireup="true"
    CodeFile="VehicleApplyView1.aspx.cs" Inherits="Car_VehicleApplyView1" Title="Untitled Page" %>

<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<%@ Register Src="~/Control/TabberHeader.ascx" TagName="TabberHeader" TagPrefix="wsc" %>
<%@ Register Src="~/Control/DateTimePicker.ascx" TagName="DateTimePicker" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>

    <style type="text/css">
        strong
        {
            color: #666666;
            font-family: Verdana,Arial,Helvetica,sans-serif;
        }
    </style>

    <script>
        function ShowMessage() {
            OpenDialog("Message.aspx?ApplyID=<%=Request["ID"] %>&UserType=<%=Request["UserType"] %>&Source=Car", "", "");
        }
 function ShowMessage2() {
            OpenDialog("Message.aspx?ApplyID=<%=Request["ID"] %>&UserType=Driver&Source=Car", "", "");
    }
        function OpenDialog(url, iWidth, iHeight) {
            iWidth = 400;
            iHeight = 300;
            var iLeft = (window.screen.width - iWidth) / 2;
            var iTop = (window.screen.height - iHeight) / 2;
            if (url.indexOf('?') > 0)
                url = url + "&nc=" + Math.random();
            else
                url = url + "?nc=" + Math.random();
            window.showModalDialog(url, window, "dialogTop:" + iTop + "px;dialogLeft:" + iLeft + "px;dialogWidth:" + iWidth + "px;dialogHeight:" + iHeight + "px;status:no; directories:yes; scrollbars:no; Resizable=no; help: no;");
      }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ListToolBarPlaceHolder" runat="Server">
    <table cellspacing="2" cellpadding="0" border="0" width="100%">
        <tr>
            <td id="tdCancel" runat="server" class="ToolMenu" width="60" visible="false">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="btnCancel" OnClick="btnCancel_Click" OnClientClick="return confirm('确定要取消申请?')">
                    <span><img src="../Images/Icon/Action/delete.gif" /></span><span>取消申请</span></asp:LinkButton>
                </div>
            </td>
            <td id="fg0" runat="server" class="Fg" visible="false">
                <img src="<%=ResolveUrl("~/Images/FgLine.gif") %>" alt="" />
            </td>
            <td id="tdPass" runat="server" class="ToolMenu" width="60" visible="false">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="btnPass" OnClick="btnPass_Click" OnClientClick="return confirm('确定要审核通过?')">
                    <span><img src="../Images/Icon/Action/enable.gif" /></span><span>通过</span></asp:LinkButton>
                </div>
            </td>
            <td id="fg1" runat="server" class="Fg" visible="false">
                <img src="<%=ResolveUrl("~/Images/FgLine.gif") %>" alt="" />
            </td>
            <td id="tdReject" runat="server" class="ToolMenu" width="60" visible="false">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="btnReject" OnClick="btnReject_Click" OnClientClick="return confirm('确定要不通过?')">
                    <span><img src="../Images/Icon/Action/error.gif" /></span><span>不通过</span></asp:LinkButton>
                </div>
            </td>
            <td id="fg2" runat="server" class="Fg" visible="false">
                <img src="<%=ResolveUrl("~/Images/FgLine.gif") %>" alt="" />
            </td>
            <td id="tdCheck" runat="server" class="ToolMenu" width="60" visible="false">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="btnCheck" OnClick="btnCheck_Click" OnClientClick="return confirm('确定要签核通过?')">
                    <span><img src="../Images/Icon/Object/property-cancel.gif" /></span><span>签核通过</span></asp:LinkButton>
                </div>
            </td>
            <td id="fg3" runat="server" class="Fg" visible="false">
                <img src="<%=ResolveUrl("~/Images/FgLine.gif") %>" alt="" />
            </td>
            <td id="tdCheckFail" runat="server" class="ToolMenu" width="60" visible="false">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="btnCheckFail" OnClick="btnCheckFail_Click" OnClientClick="return confirm('确定要签核拒绝?')">
                    <span><img src="../Images/Icon/Object/property-cancel.gif" /></span><span>签核拒绝</span></asp:LinkButton>
                </div>
            </td>
            <td id="fg4" runat="server" class="Fg" visible="false">
                <img src="<%=ResolveUrl("~/Images/FgLine.gif") %>" alt="" />
            </td>
            <td class="ToolMenu" runat="server" id="tdClose" visible="false" width="60">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="btnClose" OnClientClick="window.close();return false">
                    <span><img src="../Images/Icon/Action/delete.gif" /></span><span>关 闭</span></asp:LinkButton>
                </div>
            </td>
            <td id="tdModify" runat="server" class="ToolMenu" width="60" visible="false">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="LinkButton1" OnClick="btnModify_Click" OnClientClick="return confirm('确定修改已审核通过的信息?')">
                    <span><img src="../Images/Icon/Action/enable.gif" /></span><span>修改</span></asp:LinkButton>
                </div>
            </td>
            <td id="fg5" runat="server" class="Fg" visible="false">
                <img src="<%=ResolveUrl("~/Images/FgLine.gif") %>" alt="" />
            </td>
            <td id="tdMessage" runat="server" class="ToolMenu" width="60" visible="false">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="LinkButton2" OnClientClick="ShowMessage();return false">
                    <span><img src="../Images/Icon/Action/send.png" /></span><span>发送短信</span></asp:LinkButton>
                </div>
            </td>
            <td id="fg6" runat="server" class="Fg" visible="false">
                <img src="<%=ResolveUrl("~/Images/FgLine.gif") %>" alt="" />
            </td>
            <td id="tdMessageToDriver" runat="server" class="ToolMenu" width="60" visible="false" style=" display:none;">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="LinkButton3" OnClientClick="ShowMessage2();return false">
                    <span><img src="../Images/Icon/Action/send.png" /></span><span>发送短信给司机</span></asp:LinkButton>
                </div>
            </td>
            <td width="100%">
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="TitleContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="InfoContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="TextContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="TabberContentPlaceHolder" runat="Server">
    <wsc:TabberHeader ID="thInfo" runat="server" DivID="div1" Title="详细信息" Selected="true" />
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="Div1ContentPlaceHolder" runat="Server">
    <div style="padding-top: 8px; width: 99%; overflow: auto;" id="EditPageForm">
        <table cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr>
                <td style="padding-top: 7px" valign="top">
                    <table class="Table" cellspacing="0" cellpadding="6" width="98%" align="center" border="0"
                        style="border: 0px solid #999999">
                        <tr runat="server" id="trDiver" visible="false">
                            <td align="center" class="DetailTitle" width="150px" style="border-bottom: solid 0 white;">
                                <strong>请选择车辆：</strong>
                            </td>
                            <td style="border-bottom: solid 0 white;">
                                &nbsp;
                                <asp:DropDownList ID="ddlVehicles" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlVehicles_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                    <table class="Table" cellspacing="0" cellpadding="6" width="98%" align="center" border="0"
                        runat="server" id="table1">
                        <tr style="border-top-width: 0px;">
                            <td align="center" class="DetailTitle" width="150px" style="border-top: solid 0 white;">
                                <strong>车辆名称：</strong>
                            </td>
                            <td style="border-top-width: 0px;">
                                &nbsp;
                                <asp:Label ID="lblVehicleName" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>车牌号码：</strong>
                            </td>
                            <td>
                                &nbsp;
                                <asp:Label ID="lblVehicleNo" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>可容纳人数：</strong>
                            </td>
                            <td>
                                &nbsp;
                                <asp:Label ID="lblSeatsCount" runat="server"></asp:Label>人
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>联系电话：</strong>
                            </td>
                            <td>
                                &nbsp;
                                <asp:Label ID="lblDriverPhone" runat="server"></asp:Label>
                            </td>
                        </tr>
                        
                    </table>
                    <table class="Table" cellspacing="0" cellpadding="6" width="98%" align="center" border="0"
                        runat="server" id="table2" visible="false">
                        <tr>
                            <td align="center" class="DetailTitle" width="150px" style="border-top-width: 0px;">
                                <strong>租赁公司：</strong>
                            </td>
                            <td>
                                &nbsp;
                                <asp:TextBox ID="tbRent" runat="server" CssClass="TextBox01" MaxLength="100" Width="200px">
                                </asp:TextBox><span class="Alter">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle" width="150px" style="border-top-width: 0px;">
                                <strong>联系人：</strong>
                            </td>
                            <td>
                                &nbsp;
                                <asp:TextBox ID="tbLxr" runat="server" CssClass="TextBox01" MaxLength="100" Width="200px">
                                </asp:TextBox><%--<span class="Alter">*</span>--%>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle" width="150px">
                                <strong>联系方式：</strong>
                            </td>
                            <td>
                                &nbsp;
                                <asp:TextBox ID="tbLxfs" runat="server" CssClass="TextBox01" MaxLength="100" Width="200px">
                                </asp:TextBox><%--<span class="Alter">*</span>--%>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle" width="150px">
                                <strong>车号：</strong>
                            </td>
                            <td>
                                &nbsp;
                                <asp:TextBox ID="tbCh" runat="server" CssClass="TextBox01" MaxLength="100" Width="200px">
                                </asp:TextBox><%--<span class="Alter">*</span>--%>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>数量：</strong>
                            </td>
                            <td>
                                &nbsp;
                                <asp:TextBox ID="lblShuliangLanwei" runat="server" CssClass="TextBox01" MaxLength="100"
                                    Width="200px">
                                </asp:TextBox>
                                <%--<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="正整数"
                                    ControlToValidate="lblShuliangLanwei" SetFocusOnError="true" ValidationExpression="^[1-9]*([0-9]*|[1-9]*)$"
                                    Display="Dynamic">
                                </asp:RegularExpressionValidator>--%>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="padding-top: 12px">
                    <table class="Table" cellspacing="0" cellpadding="6" width="99%" align="center" border="0">
                        <tr>
                            <td align="center" class="DetailTitle" width="150px">
                                <strong>申请号：</strong>
                            </td>
                            <td>
                                &nbsp;<asp:Label ID="lblID" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>当前状态：</strong>
                            </td>
                            <td>
                                &nbsp;<asp:Label ID="lblStatusCN" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>申请部门：</strong>
                            </td>
                            <td>
                                &nbsp;<asp:Label ID="lblGroupName" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>申请人：</strong>
                            </td>
                            <td align="left">
                                &nbsp;<asp:Label ID="lblApplicantCN" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>出发地：</strong>
                            </td>
                            <td align="left">
                                &nbsp;<asp:Label ID="lblStartAddress" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>目的地：</strong>
                            </td>
                            <td align="left">
                                &nbsp;<asp:Label ID="lblDestination" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>用车类型：</strong>
                            </td>
                            <td align="left">
                                <asp:RadioButtonList runat="server" ID="cblYclx" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                    <asp:ListItem Text="公务车辆" Value="公用" Selected="True"></asp:ListItem>
                                    <asp:ListItem Text="外借车辆" Value="外借"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>事由：</strong>
                            </td>
                            <td>
                                &nbsp;
                                <asp:Label ID="lblPurpose" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>开始时间：</strong>
                            </td>
                            <td>
                                <asp:Label ID="lblStartDate" runat="server"></asp:Label><uc1:DateTimePicker ID="dtpStartTime"
                                    runat="server" width="200px" Visible="false" />
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>结束时间：</strong>
                            </td>
                            <td>
                                <asp:Label ID="lblEndTime" runat="server"></asp:Label><uc1:DateTimePicker ID="dtpEndTime"
                                    runat="server" width="200px" Visible="false" />
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>天数：</strong>
                            </td>
                            <td>
                                <asp:Label ID="lblRemark2" runat="server"></asp:Label>
                                <asp:TextBox ID="tbRemark2" runat="server" CssClass="TextBox01" MaxLength="4" Width="200px"
                                    Visible="false">
                                </asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="正整数"
                                    ControlToValidate="tbRemark2" SetFocusOnError="true" ValidationExpression="^[1-9]*([0-9]*|[1-9]*)$"
                                    Display="Dynamic">
                                </asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>人数：</strong>
                            </td>
                            <td align="left">
                                <asp:Label ID="lblPeopleCount" runat="server"></asp:Label>
                                <asp:TextBox ID="txtPeopCount" runat="server" CssClass="TextBox01" MaxLength="4"
                                    Width="200px" Visible="false">
                                </asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="正整数"
                                    ControlToValidate="txtPeopCount" SetFocusOnError="true" ValidationExpression="^[1-9]*([0-9]*|[1-9]*)$"
                                    Display="Dynamic">
                                </asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <%--                                    <td class="TableItem">
                                        签核人：
                                    </td>
                                    <td>
                                        &nbsp;<asp:Label ID="lblRemark1" runat="server"></asp:Label>
                                    </td>--%>
                            <td align="center" class="DetailTitle">
                                <strong>预约人：</strong>
                            </td>
                            <td align="left">
                                &nbsp;<asp:Label ID="lblRemark3" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>联系电话：</strong>
                            </td>
                            <td>
                                &nbsp;<asp:Label ID="lblPhone" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="DetailTitle">
                                <strong>备注：</strong>
                            </td>
                            <td>
                                &nbsp;<asp:Label ID="lblNote" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="Div2ContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="Div3ContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content10" ContentPlaceHolderID="Div4ContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content11" ContentPlaceHolderID="Div5ContentPlaceHolder" runat="Server">
</asp:Content>
